package com.yuanqi.java.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 采购退货单商品子表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("purchase_return_order_item")
public class PurchaseReturnOrderItem {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联退货单主表ID
     */
    private Long returnOrderId;

    /**
     * 关联原采购订单商品子表ID
     */
    private Long orderItemId;

    /**
     * 退货数量
     */
    private Integer returnQuantity;

    /**
     * 退货单价
     */
    private BigDecimal returnPrice;

    /**
     * 退货金额
     */
    private BigDecimal returnAmount;

    /**
     * 退货原因
     */
    private String reason;
} 